/*
 * @Author: zoey
 * @Date: 2023-05-08 15:08:43
 * @LastEditors: Xyl
 * @LastEditTime: 2023-05-12 14:55:48
 * @Description: 请填写简介
 */
/*
 * @Descripttion: 
 * @version: 
 * @Author: Xyl
 * @Date: 2023-04-27 14:57:35
 * @LastEditors: zoey
 * @LastEditTime: 2023-05-09 22:43:21
 */

/*
 * @Descripttion: 
 * @version: 
 * @Editor: Boyin
 * @Date: 2024-11-29 
 * @LastEditors: Boyin
 * @LastEditTime: 2024-11-29 
*/
import Vue from 'vue'
import Router from 'vue-router'

// import ThreadForensics from '@/views/ThreadForensics.vue';  // 线程取证页面
// import ProcessForensics from '@/views/ProcessForensics.vue';  // 进程取证页面
// import MemoryForensics from '@/views/MemoryForensics.vue';  // 内存取证页面


Vue.use(Router)

const router = new Router({
  mode: 'hash',
  routes: [
    {
      //访问根，自动定向到Home页面
      path: '/',
      name: 'Home',
      component: () => import(/* webpackChunkName: "Home"*/"../views/Home.vue"),
      redirect:'/Content',
      meta: {
        keepAlive: true,
      },
      children: [
        {
          path: '/Content',
          name: 'Content',
          component: () => import('../views/Content.vue'),
          meta: {
            keepAlive: false,
          },
        },

        {
          path: '/Attack',
          name: 'Attack',
          component: () => import('../views/Attack.vue'),
        },
        {
          path: '/routerforensics',
          name: 'routerforensics',
          component: () => import('../views/routerForensics.vue'),
        },
        {
          path: '/processforensics',
          name: 'processforensics',
          component: () => import('../views/processForensics.vue'),
        },
        {
          path: '/ThreadForensics',
          name: 'ThreadForensics',
          component: () => import('../views/ThreadForensics.vue'),
        },
        {
          path: '/WeblinkForensics',
          name: 'WeblinkForensics',
          component: () => import('../views/WeblinkForensics.vue'),
        },
        {
          path: '/MemuseForensics',
          name: 'MemuseForensics',
          component: () => import('../views/MemuseForensics.vue'),
        },
        {
          path: '/Tamper',
          name: 'Tamper',
          component: () => import('../views/Tamper.vue'),
        },
        {
          path: '/block',
          name: 'block',
          component: () => import('../views/block.vue'),
        },
        {
          path: '/tree',
          name: 'tree',
          component: () => import('../components/tree.vue')
        }
      ],
    },
    {
      path: '/',
      name: 'login',
      component: () => import("../views/login.vue"),
    }, {
      path: '/bg01',
      name: 'bg01',
      component: () => import("../assets/image/bg01.png"),
    },
  ]
})

export default router

const VueRouterPush = Router.prototype.push
Router.prototype.push = function push(to) {
  return VueRouterPush.call(this, to).catch(err => err)
}